package com.zxc.project.pojo.enums.system;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.zxc.project.base.BaseEnum;

/**
* @author zxc_user
* @date 2021/3/2 21:10
* @version 1.0
* @description 数据状态枚举类
**/
public enum DataStateEnum implements BaseEnum {

    NORMAL(0, "正常"),
    DELETE(1, "删除")

    ;

    @EnumValue//标记数据库存的值是code
    private Integer code;

    private String msg;

    DataStateEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
